package com.unknowpupil.design.builder;

/**
 * @Description: <br/>
 * <p>
 *   神州飞行构建器。
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/24 20:40
 * @Classname: DivineLandShipBuilder
 * @Version: 1.0
 */
public class DivineLandShipBuilder implements AirShipBuilder{

    @Override
    public Engine builderEngine() {
        System.out.println("构建神州发动机");

        // 这个地方可以结合工厂单例等
        return new Engine("神州发动机");
    }

    @Override
    public EscapeTower builderEscapeTower() {
        System.out.println("构建神州逃逸塔");
        return new EscapeTower(" 神州逃逸塔");
    }

    @Override
    public OrbitalModule builderOrbitalModule() {
        System.out.println("构建神州轨道舱");
        return new OrbitalModule(" 神州轨道舱");
    }
}
